package com.liushao.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 陈修华
 * @ClassName LendStatusEnum
 * @description: TODO
 * @datetime 2022年 12月 06日 13:46
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum  LendStatusEnum {

    CHECK(0,"待发布"),
    INVEST_RUN(1,"募资中"),
    PAY_RUN(2,"还款中"),
    PAY_OK(3,"已结清"),
    FINISH(4,"结标"),
    CANCEL(-1,"已撤标"),
    ;

    private Integer status;
    private String msg;

    //写个方法获取认证中
    public static String getMsgStatus(int startus){
        LendStatusEnum[] arrObj = LendStatusEnum.values();
        for(LendStatusEnum obj: arrObj){
            if(startus==obj.getStatus().intValue()){
                return  obj.getMsg();
            }

        }

        return "";
    }
}
